from sys import argv
from re import findall
variables = {}
if len(argv) == 1:
    while True:
        code = input("JVAV>")
        if code.startswith("print:\""):
            print(code.split("\"")[1])
        elif code.startswith("var "):
            variables[findall(r"var\s+(.*?)\s*=",code)[0]] = eval(code.split("=")[1])
        elif code.startswith("print:"):
            print(variables.get(code.split("print:")[1],f"ERROR: can't find variable {code}"))
        else:
            print(f"ERROR: invalid code {code}")
